package com.snline.crm.logistics.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.snline.crm.logistics.dao.inter.ILoginUserMapper;
import com.snline.crm.logistics.entity.ProjectUser;

/**
 * 用户登录
 * @author admin
 *
 */
@Service("loginUserService")
public class LoginUserService{

	@Resource
	private ILoginUserMapper loginUserMapper;
	
	/**
	 * 用户的取得
	 * @param user 用户信息
	 * @return 用户信息
	 */
	public ProjectUser findProjectUser(ProjectUser user) {

	    return loginUserMapper.selectProjectUser(user);
	}

    public int addProjectUser(ProjectUser user) {
        // TODO Auto-generated method stub
        return loginUserMapper.insertIntoProjectUser(user);
    }

    public ProjectUser checkProjectUser(String userTel) {
        // TODO Auto-generated method stub
        return loginUserMapper.checkProjectUser(userTel);
    }

}
